!/bin/sh

TOMCAT_NAME='tomcat'

MONITER_NAME='monitorTomcat.sh'

time=`date +%F--%T`


TOMCAT_PID=`ps -ef | grep "$TOMCAT_NAME" | grep -v "$0" | grep -v "grep" | grep -v "tail" | awk '{print $2}'`

MONITER_PID=`ps -ef | grep "$MONITER_NAME" | grep -v "$0" | grep -v "grep" | grep -v "tail" | awk '{print $2}'`


echo 'TOMCAT_PID = '$TOMCAT_PID

echo 'MONITER_PID = '$MONITER_PID

/szcg/tool/scpUpdate.sh

echo '文件复制成功---开启tomcat------------'
